Option Explicit
'OҲAppEventCls
Public WithEvents myApp As Application
Private Sub myApp_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean)
    MsgBox Wb.Name & "QCloseFC by Application"
End Sub

'зǼҲ
Dim myAppCls As New AppEventCls
Sub InitializeAppEvent()
    Set myAppCls.myApp = Application
End Sub
